package com.xgit.iov.work.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xgit.iov.common.core.service.ISuperService;
import com.xgit.iov.work.model.DbdTerminal;

/**
 * 终端Service接口
 *
 * @author william
 * @date 2020-12-04
 */
public interface IDbdTerminalService extends ISuperService<DbdTerminal> {

    /**
     * 查询终端
     *
     * @param id 终端ID
     * @return 终端
     */
     DbdTerminal selectDbdTerminalById(Long id);

    /**
     * 查询终端列表
     *
     * @param dbdTerminal 终端
     * @return 终端集合
     */
    IPage<DbdTerminal> selectDbdTerminalPage(Page page, DbdTerminal dbdTerminal);

    /**
     * 新增终端
     *
     * @param dbdTerminal 终端
     * @return 结果
     */
     int insertDbdTerminal(DbdTerminal dbdTerminal);

    /**
     * 修改终端
     *
     * @param dbdTerminal 终端
     * @return 结果
     */
     int updateDbdTerminal(DbdTerminal dbdTerminal);

    /**
     * 批量删除终端
     *
     * @param ids 需要删除的终端ID
     * @return 结果
     */
     int deleteDbdTerminalByIds(Long[] ids);

}
